package com.ruoyi.im.domain;

import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户管理表 im_user
 * 
 * @author ruoyi
 * @date 2018-11-06
 */
public class User extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Long id;
	/** 用户姓名 */
	private String name;
	/** 用户昵称 */
	private String nickname;
	/** 性别 */
	private Integer sex;
	/** 电话号码 */
	private String phone;
	/** 用户头像 */
	private String logo;
	/** 年龄 */
	private Integer age;
	/** 所在地 */
	private String locationAddress;
	/** 出生日期 */
	private String birthDate;
	/** 登录账号 */
	private String loginAccount;
	/** 密码 */
	private String password;
	/** 注册时间 */
	private String registrationTime;
	/** 备注 */
	private String remarks;
	/** 类型 */
	private int type;
	/**用户ID*/
	private Integer memberId;

	public Integer getMemberId() {
		return memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}

	private String groupNickName;//群昵称

	private Integer onLineState;//用户上线状态

	public Integer getOnLineState() {
		return onLineState;
	}

	public void setOnLineState(Integer onLineState) {
		this.onLineState = onLineState;
	}

	public String getGroupNickName() {
		return groupNickName;
	}

	public void setGroupNickName(String groupNickName) {
		this.groupNickName = groupNickName;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setNickname(String nickname) 
	{
		this.nickname = nickname;
	}

	public String getNickname() 
	{
		return nickname;
	}
	public void setSex(Integer sex) 
	{
		this.sex = sex;
	}

	public Integer getSex() 
	{
		return sex;
	}
	public void setPhone(String phone) 
	{
		this.phone = phone;
	}

	public String getPhone() 
	{
		return phone;
	}
	public void setLogo(String logo) 
	{
		this.logo = logo;
	}

	public String getLogo() 
	{
		return logo;
	}
	public void setAge(Integer age) 
	{
		this.age = age;
	}

	public Integer getAge() 
	{
		return age;
	}
	public void setLocationAddress(String locationAddress) 
	{
		this.locationAddress = locationAddress;
	}

	public String getLocationAddress() 
	{
		return locationAddress;
	}
	public void setBirthDate(String birthDate) 
	{
		this.birthDate = birthDate;
	}

	public String getBirthDate() 
	{
		return birthDate;
	}
	public void setLoginAccount(String loginAccount) 
	{
		this.loginAccount = loginAccount;
	}

	public String getLoginAccount() 
	{
		return loginAccount;
	}
	public void setPassword(String password) 
	{
		this.password = password;
	}

	public String getPassword() 
	{
		return password;
	}
	public void setRegistrationTime(String registrationTime) 
	{
		this.registrationTime = registrationTime;
	}

	public String getRegistrationTime() 
	{
		return registrationTime;
	}
	public void setRemarks(String remarks) 
	{
		this.remarks = remarks;
	}

	public String getRemarks() 
	{
		return remarks;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("nickname", getNickname())
            .append("sex", getSex())
            .append("phone", getPhone())
            .append("logo", getLogo())
            .append("age", getAge())
            .append("locationAddress", getLocationAddress())
            .append("birthDate", getBirthDate())
            .append("loginAccount", getLoginAccount())
            .append("password", getPassword())
            .append("registrationTime", getRegistrationTime())
            .append("remarks", getRemarks())
            .toString();
    }
}
